#pragma once


// CTabButton
class CTabButton : public CButton
{
	DECLARE_DYNAMIC(CTabButton)

public:
	CTabButton();
	virtual ~CTabButton();
	
	void CreateChildButton( int nID, const CRect& rtMargin);
	void ShowChildButton( BOOL bShow);

protected:
	DECLARE_MESSAGE_MAP()
	afx_msg void OnSize(UINT nType, int cx, int cy);
	virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);

protected:
	CRect m_rtbtnMargin;
	CButton m_childBtn;
	int m_btnID;
public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
};


